import request from '@/utils/request';

export async function getErrorReportByPage (params: any) {
    return request('/api/product/getErrorReportByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addErrorReport (params: any) {
    return request('/api/product/addErrorReport', {
    method: 'POST',
    data: params,
  });
}

export async function updateErrorReport (params: any) {
    return request('/api/product/updateErrorReport', {
    method: 'POST',
    data: params,
  });
}

export async function delErrorReport (params: any) {
    return request('/api/product/delErrorReport', {
    method: 'POST',
    data: params,
  });
}


export async function exportErrorReport(params: any) {
    return request('/api/product/exportErrorReport', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getErrorReportByPage, addErrorReport, updateErrorReport, delErrorReport, exportErrorReport }
